package net.googlecode.kharchenko.dao;

import net.googlecode.kharchenko.domains.Group;

import javax.swing.*;
import java.security.PublicKey;
import java.util.List;

/**
 * Data Access Object interface for Group.
 */
public interface GroupDAO {
    /**
     * Get list of all groups.
     *
     * @return list of all groups.
     */
    public List<Group> getAllGroups();

    /**
     * Get group  by id.
     *
     * @param id group id
     * @return group.
     */
    public Group getGroup(Long id);
}
